<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/Project.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/jedate.css" />
    <link rel="stylesheet" type="text/css" href="../../../lib/Validform/5.3.2/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/style-q.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/custom.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/drop-down.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../../lib/DD_belatedPNG_0.0.8a-min.js?rev=@@hash"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>异常订单</title>
</head>
<body data-id="11">
<nav class="breadcrumb">订单管理 <span class="c-gray en">&gt;</span> 异常订单<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
    <div class="ml-20 mr-20">
        <div class="bg-1 bk-gray pb-10">
            <form id="form-search">
                <div class="pl-10 lh-30 mb-10">
                    <table class="table_li ml-10 mb-10 table">
                        <thead class="text-l">
                        <tr>
                        </tr>
                        </thead>
                    </table>
                    <div class="line mb-10"></div>
                    <table class="table-hover table_li ml-10 mb-10 table">
                        <thead class="text-l">
                        <tr>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 86px;" class="form-label f-l pt-5">异常类型：</label>
                                    <span class="select-box size-M radius col-xs-8" style="width: 40%;margin-left: -7px;">
                              <select class="select" name="brandclass" id="abnormalType" size="1">
                                  <option value="" selected>选择异常类型</option>
                                   <option value="20">临采商品订单</option>
                                  <option value="40">货到付款订单</option>
                                  <option value="60">超卖订单</option>
                                  <option value="70">低于成本价订单</option>
                                  <option value="90">经纬度异常</option>
                                  <option value="100">分销订单</option>
                                  <option value="110">门店付款</option>
                                  <option value="120">账期扣额度失败</option>
                                  <option value="130">厂家直送订单</option>
                                  <option value="150">预计送达时间晚于期望送达时间</option>
                              </select>
                              </span>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label class="form-label f-l pt-5">&nbsp;&nbsp;&nbsp;&nbsp;订&nbsp;&nbsp;单&nbsp;&nbsp;号&nbsp;&nbsp;：</label>
                                    <div class="formControls col-xs-8 col-sm-9">
                                        <input type="text" class="input-text radius" style="width: 196px;margin-left: -104px;"  id="orderCode" name="orderCode" placeholder="输入订单号查询" oninput = "value=value.replace(/[\W]/g,'')" maxlength="12">
                                    </div>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 95px;" class="form-label f-l pt-5">&nbsp;&nbsp;&nbsp;&nbsp;商品：</label>
                                    <div class="formControls col-xs-8 col-sm-9">
                                        <input type="text" class="input-text radius" style="width: 196px;margin-left: -157px;"  id="SKUCode" name="SKUCode"  placeholder="输入code码" onkeyup="this.value=this.value.replace(/[^\d]/g,'') " onafterpaste="this.value=this.value.replace(/[^\d]/g,'') "><!--datatype="n11-11|/^[^a-zA-Z\u4e00-\u9fa5]{16}$/" errormsg="spu码只能是11位数字" ignore="ignore" onkeyup="this.value=this.value.replace(/\s+/g,'')"-->
                                    </div>
                                    <span class="Validform_checktip"></span>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 84px;" class="form-label f-l pt-5">支付方式：</label>
                                    <span class="select-box size-M radius col-xs-8" style="width: 40%;margin-left: -7px;">
                              <select class="select" name="brandclass" id="payWay" size="1">
                                  <option value="" selected>全部</option>
                                  <option value="1001">在线支付</option>
                                  <option value="1101">货到付款</option>
                                  <option value="1301">银行转账</option>
                                 <!-- <option value="1401">银行汇票</option>-->
                                  <option value="1201">账期支付</option>
                                  <option value="1701">门店付款</option>
                              </select>
                              </span>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 101px;" class="form-label f-l pt-5">&nbsp;&nbsp;下单时间：</label>
                                    <div class="f-l">
                                        <input class="workinput wicon input-text radius" id="timemin" type="text" placeholder="起始时间" style="width:116px;margin-left: -14px;" readonly>
                                        ~
                                        <input class="workinput wicon input-text radius" id="timemax" type="text" placeholder="结束时间" style="width:115px;" readonly>
                                    </div>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 87px;" class="form-label f-l pt-5">客户名称：</label>
                                    <div class="formControls col-xs-8 col-sm-9">
                                        <input type="text" class="input-text radius" style="margin-left: -138px;width: 196px;"  id="buyerName" name="buyerName"  placeholder="输入买家关键字">
                                    </div>
                                    <span class="Validform_checktip"></span>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label class="form-label f-l pt-5">收货人姓名：</label>
                                    <div class="formControls col-xs-8 col-sm-9">
                                        <input type="text" class="input-text radius"  style="width: 172px;margin-left: -135px;" id="consignee" name="consignee"  placeholder="输入姓名关键字" datatype="/^[^a-zA-Z1-9]{0,20}$/" errormsg="输入格式错误" ignore="ignore" onkeyup="this.value=this.value.replace(/\s+/g,'')">
                                    </div>
                                    <span class="Validform_checktip"></span>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label class="form-label f-l pt-5">收货人手机号：</label>
                                    <div class="formControls col-sm-7">
                                        <input type="text" class="input-text radius"  style="width: 196px;margin-left: -43px;" id="phoneNum" name="phoneNum"  placeholder="输入手机号码" datatype="n0-11" errormsg="输入格式不正确" ignore="ignore" onKeyUp="value=value.replace(/\s+/g,'')">
                                    </div>
                                    <span class="Validform_checktip"></span>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 96px;" class="form-label f-l pt-5">销售经理：</label>
                                    <div class="formControls col-xs-8 col-sm-9">
                                        <input type="text" class="input-text radius" style="width: 196px;margin-left: -153px;"  id="saleManager" name="saleManager"  placeholder="输入姓名关键字" datatype="/^[^a-zA-Z1-9]{0,20}$/" errormsg="输入格式错误" ignore="ignore"  onkeyup="this.value=this.value.replace(/\s+/g,'')">
                                    </div>
                                    <span class="Validform_checktip"></span>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 91px;" class="form-label f-l pt-5">发&nbsp;货&nbsp;仓：</label>
                                    <span class="select-box size-M radius col-xs-8" style="width: 40%;margin-left: -12px;">
                              <select class="select" name="brandclass" id="shippingWarehouse" size="1">
                                <option value="" selected>请选择发货仓</option>

                              </select>
                              </span>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 103px;" class="form-label f-l pt-5">收&nbsp;&nbsp;&nbsp;货&nbsp;&nbsp;&nbsp;地：</label>
                                    <span class="select-box size-M radius col-xs-8" style="width: 133px;margin-left: -14px;">
                                  <select class="select" onchange="discountdata(1)" name="brandclass" id="getArea" size="1">
                                    <option value="" selected>请选择收货区域</option>

                                  </select>
                                </span>
                                    <span class="select-box size-M radius col-xs-8 ml-10" style="width: 132px;">
                                  <select class="select" name="brandclass" id="getPlace" size="1">
                                    <option value="" selected>请选择收货位置</option>

                                  </select>
                                </span>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 80px;" class="form-label f-l pt-5">代客下单人：</label>
                                    <div class="formControls col-xs-8 col-sm-9">
                                        <input type="text" class="input-text radius" style="width: 196px;margin-left: -122px;"  id="orderPlacer" name="orderPlacer"  placeholder="输入姓名关键字" datatype="/^[^a-zA-Z1-9]{0,20}$/" errormsg="输入格式错误" ignore="ignore" onkeyup="this.value=this.value.replace(/\s+/g,'')">
                                    </div>
                                    <span class="Validform_checktip"></span>
                                </div>
                            </td>
                            <td class="col-3-2" colspan="2"></td>
                        </tr>
                        <tr>

                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 89px;" class="form-label f-l pt-5">订单来源：</label>
                                    <span class="select-box size-M radius col-xs-8" style="width: 40%;margin-left: -7px;">
                              <select class="select" name="brandclass" id="platform" size="1">
                                  <option value="" selected>全部</option>
                                  <option value="10">普通平台</option>
                                  <option value="20">签约平台</option>
                              </select>
                              </span>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 111px;" class="form-label f-l pt-5">&nbsp;配送方式：</label>
                                    <span class="select-box size-M radius col-xs-8" style="width: 40%;margin-left: -19px;">
                              <select class="select" name="brandclass" id="final_sent_type" size="1">
                                  <option value="" selected>全部</option>
                                  <option value="10">快递</option>
                                  <option value="20">快运</option>
                                  <option value="30">专车包车</option>
                                  <option value="40">鑫方盛物流</option>
                                  <option value="50">上门自提</option>
                                  <option value="52">配送客户自提</option>
                              </select>
                              </span>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label class="form-label f-l pt-5 text-r w-75 ml-10">订单类型：</label>
                                    <div class="input_box sel_box sel_box02 col-xs-8 col-sm-9 ">
                                        <input  type="text" class="datava2 input-text radius f-l w-180 kild" readonly>
                                        <i class="icon_arrow"></i>
                                        <span class="typeplaceholder"><span class="all-radiustype">全部</span></span>
                                        <ul class="typeulbox2 item" style="display: none">
                                            <li class=""><input type="checkbox" crmCustomerId="19649,19650,19653,40116,19655,19656,19652,19654,19651"><p class="typecheckboxall">全选</p></li>
                                            <li class="typelidata" crmCustomerId="19649" crmCustomername="配送订单"><input type="checkbox" class="typeevetyipt"><span>配送订单</span></li>
                                            <li class="typelidata" crmCustomerId="19650" crmCustomername="外阜订单" ><input type="checkbox" class="typeevetyipt"><span>外阜订单</span></li>
                                            <li class="typelidata" crmCustomerId="19653" crmCustomername="厂家直送" ><input type="checkbox" class="typeevetyipt"><span>厂家直送</span></li>
                                            <li class="typelidata" crmCustomerId="40116" crmCustomername="连接带送"><input type="checkbox" class="typeevetyipt"><span>连接带送</span></li>
                                            <li class="typelidata" crmCustomerId="19655" crmCustomername="配送客户自提" ><input type="checkbox" class="typeevetyipt"><span>配送客户自提</span></li>
                                            <li class="typelidata" crmCustomerId="19656" crmCustomername="店面配送" ><input type="checkbox" class="typeevetyipt"><span>店面配送</span></li>
                                            <li class="typelidata" crmCustomerId="19652" crmCustomername="专线订单" ><input type="checkbox" class="typeevetyipt"><span>专线订单</span></li>
                                            <li class="typelidata" crmCustomerId="19654" crmCustomername="店面自提" ><input type="checkbox" class="typeevetyipt"><span>店面自提</span></li>
                                            <li class="typelidata" crmCustomerId="19651" crmCustomername="无货自提"><input type="checkbox" class="typeevetyipt"><span>无货自提</span></li>
                                        </ul>
                                    </div>
                                </div>
                                <span class="Validform_checktip"></span>
                            </td>

                        </tr>
                        <tr>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 89px;" class="form-label f-l pt-5">&nbsp;拆分状态：</label>
                                    <span class="select-box size-M radius col-xs-8" style="width: 40%;margin-left: -7px;">
                              <select class="select" name="brandclass" id="order_split_status" size="1">
                                  <option value="" selected>全部</option>
                                  <option value="0">未拆分</option>
                                  <option value="10">拆分中</option>
                              </select>
                              </span>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 89px;" class="form-label f-l pt-5">&nbsp;客户组类型：</label>
                                    <span class="select-box size-M radius col-xs-8" style="width: 40%;margin-left: -7px;">
                              <select class="select" name="brandclass" id="CustomerType" size="1">
                              </select>
                              </span>
                                </div>
                            </td>
                        </tr>
                        </thead>
                    </table>
                </div>
                <div class="text-c pb-20 pt-10">
                    <input type="submit" class="btn btn-secondary radius size-S powerButton 100" value="搜&nbsp;&nbsp;索">
                    <input name="" type="reset" onclick="resetDiv()" id="resets" class="btn radius size-S ml-10 powerButton 100" value="重&nbsp;&nbsp;置">
                </div>
            </form>
            <table class="table table-border table-bg table-hover table-sort mt-10" id="datatable">
                <thead>
                <tr class="text-c">
                    <th width="315">商品</th>
                    <th width="115">异常类型</th>
                    <th width="70">客户名称</th>
                    <th width="70">收货人</th>
                    <th width="70">支付方式</th>
                    <th width="70">订单金额</th>
                    <th width="70">交易状态</th>
                    <th width="100">交易操作</th>
                </tr>
                </thead>
            </table>
            <div class="tableclass" id="orderList"> </div>
            <div class="dataTables_wrapper goods_fanye clearfix mt-5">
                <div class="f-r pageturning M-box3"></div>
            </div>
        </div>

    </div>
    <!-- 子订单弹框-->
    <div id="viewSuborder" class="modal fade" tabindex="-1" onclick="leftTop(this)" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
        <div class="modal-dialog">
            <div class="modal-content radius" style="height:217px;width:380px;overflow-y: auto;overflow-x: hidden;margin-top: 188px;">
                <input type="hidden" class="ship_add_id">
                <div class="pop_win pop_receiver"  style="height: 217px;">
                    <div class="info" id="viewSuborders">
                       <!-- <div class="clearfix">
                            <label>子订单：</label><a class="formControls w-150 ml-10 lh-26">112222222</a>
                        </div>
                        <div class="clearfix">
                            <label>子订单：</label><a class="formControls w-150 ml-10 lh-26">112222222</a>
                        </div>
                        <div class="clearfix">
                            <label>子订单：</label><a class="formControls w-150 ml-10 lh-26">112222222</a>
                        </div>-->
                    </div>
                    <div class="text-c pt-30" style="margin-left: -272px;"><a onclick="closeodel()" class="btn radius size-L ml-10">关闭</a></div>
                </div>
            </div>
        </div>

    </div>
</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../../lib/jquery.jedate.min.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script src="../../../lib/Validform/5.3.2/Validform_v5.3.2_min.js?rev=@@hash"></script>
<!--引入分页-->
<link rel="stylesheet" href="../../../lib/pagination/pagination.css">
<script src="../../../lib/pagination/jquery.pagination.js?rev=@@hash"></script>
<!--权限控制-->
<script type="text/javascript" src="../../../ht-js/power.js?rev=@@hash"></script>
<script src="../../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../../ht-js/warehouse.js?rev=@@hash"></script>
<script src="../../../ht-js/Project.js?rev=@@hash"></script>
<script src="../../../ht-js/order/abnormalOrder.js?rev=@@hash"></script>
<script>
    //弹框居中
    function leftTop(obj){
        var screenWidth = $(window).width();
        var screenHeight = $(window).height();
        var scrolltop = $(document).scrollTop();
        var scrollleft = $(document).scrollLeft();
        var objLeft = (screenWidth - obj.width())/2 + scrollleft ;
        var objTop = (screenHeight - obj.height())/2 + scrolltop;
        obj.css({left: objLeft + 'px', top: objTop + 'px'});
    }
    $(function(){
        $("#form-search").Validform({
            tiptype:2,
            callback:function(form){
                console.log(111)
                getList(1)
                return false;
            }
        });
    })
    function timeSet(startEl,endEl,timeFormat){
        /*startEl=>开始时间Input的id，endEl=>结束时间Input的id，时间格式（YYYY-MM-DD hh:mm:ss  YYYY年MM月DD日 hh:mm:ss）*/
        /*时间设置*/
        var thisMaxTime = $.nowDate().substring(0,$.nowDate().length-8)+"23:59:59";
        var start = {
            format: timeFormat,
            maxDate: thisMaxTime,
            okfun: function(obj){
                end.minDate = obj.val.substring(0,obj.val.length-5)+"00:00:00"; //开始日选好后，重置结束日的最小日期
            }
        };
        var end = {
            format: timeFormat,
            maxDate: thisMaxTime,
            okfun: function(obj){
                start.maxDate = obj.val.substring(0,obj.val.length-5)+"23:59:59"; //将结束日的初始值设定为开始日的最大日期
            }
        };
        $.jeDate(startEl,start);
        $.jeDate(endEl,end);
    }
    timeSet("#timemin","#timemax","YYYY-MM-DD hh:mm");
</script>
</body>
</html>